package com.sike.service;
/**
 * 
 * @company sikejiaoyu
 */
import java.util.Collection;
import java.util.List;
import java.util.Map;

import javax.swing.tree.TreeModel;

public interface BaseService {
	public void delete(String deleteStatementName, Object map);
	public void delete(String[] statementNames, Object map);

	public Object load(String loadStatementName, Object param);
	public Object load(String[] loadStatementNames, Object param);
	public void create(String createStatementName, Object model);

	public void create(String createStatementName, Object model,
			String sequenceStatementName);

	public long count(String pageStatementName, Object param) ;

	public Collection find(String listStatementName, Object map);
	public void update(String updateStatementName, Object model) ;

	public void save(String[] statementNames, String[] type,
			Map<String, Object> model) ;

	public List<TreeModel> loadTree(String pageSQL, Object param) ;

	public List<TreeModel> allTree(String treeSQL, Object param) ;
	public void save(String loadStatementName, String createStatementName,
			String sequenceStatementName, String updateStatementName,
			Object model) ;
}
